package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 试卷基础信息
 *
 * @author ahuan
 */
@Data
@TableName("papers")
@EqualsAndHashCode(callSuper = true)
public class Paper extends BaseModel {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("title")
    private String title;

    @TableField("code")
    private String code;

    @TableField("total_score")
    private BigDecimal totalScore;

    @TableField("pass_score")
    private BigDecimal passScore;

    @TableField("time_limit")
    private Integer timeLimit;

    @TableField("status")
    private Integer status;

    @TableField("version")
    private Integer version;

    @TableField("tags_json")
    private String tagsJson;

    @TableField("attachment_ids")
    private String attachmentIds;

    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private String questionCount;
}